package com.lee.demosharding.service;

import com.lee.demosharding.entity.Course;
import com.lee.demosharding.mapper.CourseMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2021/11/18
 */
@Service
@AllArgsConstructor
public class CourseService {

    private final CourseMapper courseMapper;

    public int add(Course course) {
        return courseMapper.insert(course);
    }
}
